import request from '@/utils/request'

// 查询BwOrder列表
export function listBwOrder(query) {
    return request({
        url: '/api/v1/bw/orderList',
        method: 'get',
        params: query
    })
}

// 查询BwOrder详细
export function getBwOrder (orderId) {
    return request({
        url: '/api/v1/bw/order/' + orderId,
        method: 'get'
    })
}


// 新增BwOrder
export function addBwOrder(data) {
    return request({
        url: '/api/v1/bw/order',
        method: 'post',
        data: data
    })
}

// 修改BwOrder
export function updateBwOrder(orderId, data) {
    return request({
        url: `/api/v1/bw/authOrder/${orderId}`,
        method: 'put',
        data: data
    })
}

// 删除BwOrder
export function delBwOrder(orderId) {
    return request({
        url: '/api/v1/bw/order/' + orderId,
        method: 'delete'
    })
}

// 删除BwOrder
export function turnDownOrder(orderId,data) {
    return request({
        url: `/api/v1/bw/turnDownOrder/${orderId}`,
        method: "put",
        data
    });
}

// 删除BwOrder
export function businessGetOrderInfo( params) {
    return request({
        url: '/api/mp/v1/shopOrderList',
        method: "get",
        params,
    });
}


